<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{$ts['app']['app_alias']} -
{$ts['site']['site_name']}管理后台</title>
<link href="__PUBLIC__/admin/style.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/js/tbox/box.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/tbox/box.js"></script>
<style>
.list{margin:10px 0; line-height:20px;}
.list li{margin:10px 0; padding:5px 0; border-bottom:1px solid #ccc;}
.smenu a{margin:5px; color:#060;}
.smenu .selected{color:red;}
.p{margin:10px 0;}
.p *{margin-right:10px;}
.selected{color:red;}
</style>
</head>
</head>
<body>
<div class="so_main">
<div class="page_tit">问题管理</div>
<include file="_header" />
<div class="smenu">
<a href="/index.php?app=ask&mod=Admin&act=index&flag=1" <if condition="$_GET['flag'] eq '1'">class="selected" </if>>正常</a>
	<a href="/index.php?app=ask&mod=Admin&act=index&flag=0" <if condition="$_GET['flag'] eq '0'">class="selected" </if>>已关闭</a>
	<a href="/index.php?app=ask&mod=Admin&act=index&flag=-1" <if condition="$_GET['flag'] eq '-1'">class="selected" </if>>已删除</a>
</div>
	<div class="list">
		<volist name="list['item']" id="val" empty="暂无信息">
		<li><a href="{:U('ask/Index/show',array('id'=>$val['ask_id']))}" target="_blank">{$val.ask_title}</a> 
		<p style="color:#999;">&nbsp; <if condition="$val['ask_flag'] eq 1"><a href="/index.php?app=ask&mod=Admin&act=index&do=close&id={$val['ask_id']}" style="color:green">关闭</a></if>&nbsp; <if condition="$val['ask_flag'] gt -1"><a href="/index.php?app=ask&mod=Admin&act=index&do=del&id={$val['ask_id']}" onclick="return confirm('确定删除吗？')" style="color:red">删除</a></if>&nbsp; 
		<if condition="$val['ask_sort'] eq 1 and $val['ask_flag'] eq 1"><a href="/index.php?app=ask&mod=Admin&act=index&do=delHot&id={$val['ask_id']}"  style="color:#00f" >取消推荐</a><elseif condition="$val['ask_flag'] eq 1" /> <a href="/index.php?app=ask&mod=Admin&act=index&do=hot&id={$val['ask_id']}"   style="color:#000">推荐</a></if> <a href="/space/{$val['user_id']}" target="_blank">{$val.user_name}</a> - 访问数：{$val.view_num} - 回答数：{$val.ask_num} - 发表于：{:date('Y-m-d H:i:s',$val['ask_addtime'])}</p>
		</volist>
	</div>
</div>
</body>
</html>
